package cn.yzstu.processor;

import com.sun.source.util.Trees;
import com.sun.tools.javac.code.Symtab;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.tree.TreeMaker;
import com.sun.tools.javac.tree.TreeTranslator;
import com.sun.tools.javac.util.Context;
import com.sun.tools.javac.util.Name;

/**
 * YzLogger逻辑执行器
 * @author Baldwin
 */
public class YzLoggerTranslator extends TreeTranslator {

    private Trees trees;
    private TreeMaker make;
    private Name.Table names;
    private Context context;
    private String methodName;
    private Symtab syms;

    public YzLoggerTranslator(Trees trees, TreeMaker make, Name.Table names, Context context, String methodName) {
        this.trees = trees;
        this.make = make;
        this.names = names;
        this.context = context;
        this.methodName = methodName;
        syms = Symtab.instance(context);
    }

    @Override
    public void visitVarDef(JCTree.JCVariableDecl jcVariableDecl) {
        super.visitVarDef(jcVariableDecl);
//        jcVariableDecl
    }
}
